SQL Server 獲取本周,本月,本年等時間內記錄
datediff(week,zy_time,getdate())=0 //查詢本周 datediff(month,zy_time,getdate())=0 //查詢本月 本季:select * f ...
datediff(week,zy_time,getdate())=0 //查詢本周 datediff(month,zy_time,getdate())=0 //查詢本月 本季:select * f ...